.class Lcom/waiqin365/lightapp/returngoods/ab;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/4 v5, 0x0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->dismissProgressDialog()V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/returngoods/b/a/n;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/returngoods/b/a/n;->b()Z

    move-result v1

    if-eqz v1, :cond_4

    iget-object v1, v0, Lcom/waiqin365/lightapp/returngoods/b/a/n;->b:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_3

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/returngoods/b/a/n;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->b(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;)Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->a(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/jxccache/f;->f(Ljava/lang/String;)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->b(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;)Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->a(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/jxccache/f;->h(Ljava/lang/String;)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->c(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->d(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;)Z

    move-result v1

    if-eqz v1, :cond_1

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v2, "type"

    sget-object v3, Lcom/fiberhome/gaea/client/a/e;->e:Lcom/fiberhome/gaea/client/a/e;

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const-class v3, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesProcessSelectActivity;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v3, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordDetailActivity;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v3, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v3, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v3

    const-string/jumbo v4, "reinit_activity"

    invoke-virtual {v3, v4, v1, v2}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    iget-object v2, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    const v3, 0x7f080718

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->showToast(Ljava/lang/String;)V

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    const-class v2, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v2, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v2

    const-string/jumbo v3, "close_activity"

    invoke-virtual {v2, v3, v5, v1}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->finish()V

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->b(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;)Landroid/content/Context;

    move-result-object v1

    check-cast v1, Landroid/app/Activity;

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/app/Activity;)V

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    const-class v2, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v2, Lcom/waiqin365/lightapp/returngoods/CustomerReturnTypeListActy;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v2, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v2

    const-string/jumbo v3, "close_activity"

    invoke-virtual {v2, v3, v5, v1}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v1

    const-class v2, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsListActivity;

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->a(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    const-string/jumbo v1, "reinit_activity"

    const-class v2, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsListActivity;

    invoke-virtual {v0, v1, v5, v2}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->finish()V

    goto/16 :goto_0

    :cond_2
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    const-class v3, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "no"

    iget-object v0, v0, Lcom/waiqin365/lightapp/returngoods/b/a/n;->d:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_1

    :cond_3
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->b(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;)Landroid/content/Context;

    move-result-object v1

    iget-object v0, v0, Lcom/waiqin365/lightapp/returngoods/b/a/n;->c:Ljava/lang/String;

    const/4 v2, 0x1

    invoke-static {v1, v0, v2}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/ab;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;->b(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsSaveOrderActivity;)Landroid/content/Context;

    move-result-object v1

    iget v0, v0, Lcom/waiqin365/lightapp/returngoods/b/a/n;->a:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x138a
        :pswitch_0
    .end packed-switch
.end method
